#include<iostream>
#include<string>
#include"class_learn.h"

class Date {
    private:
        // 私有成员变量
        int m_year {2022};
        int m_month {1};
        int m_day {1};
    public:
        // 公有成员变量
        int total;

        // 公有成员函数
        void print() {
            std::cout << m_year << "/" << m_month << "/" << m_day << std::endl;
        }

        int getYear() const {
            return m_year;
        }

        void setYear(int year) {
            m_year = year;
        }
};

void class_visit_limit() {
    Date date;
    date.print();
}